package com.baseweb.webadmin.aop;

import org.aspectj.lang.JoinPoint;

public class LogHandler {

    public LogHandler(){};

    /**
     * 未启用
     * @param joinpoint
     */
    public void writeLog(JoinPoint joinpoint)
    {
        System.out.println("---------begin--------------");
        Object[] args=joinpoint.getArgs();
        System.out.println(joinpoint.getSignature().getName()); //调用的方法名
        for (int i = 0; i < args.length; i++) {
            System.out.println(args[i]); //输出传入的参数
        }
        System.out.println("---------end--------------");
    }
}
